package com.adaxi.adc.business.manager.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 乘客信息表
 * @TableName adc-passenger
 */
@TableName(value ="adc_passenger")
@Data
public class Passenger implements Serializable {
    /**
     * 乘客ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;
    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;
    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;
    /**
     * 真实姓名
     */
    @TableField(value = "name")
    private String name;
    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;
    /**
     * 注册时间
     */
    @TableField(value = "register_time")
    private Date registerTime;
    /**
     * 逻辑删除状态字段: 0 表示未删除, 1 表示已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;
    /**
     * 头像
     */
    @TableField(value = "photo")
    private String photo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private PassengerTrip passengerTrip;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private PassengerTripLocation passengerTripLocation;
}